import { useState } from 'react';
import logo from './logo.svg';
import './App.css';
import {get} from 'lodash'
const object = { a: [{ b: { c: '通过lodash获取值' } }] };
function App() {
  
  const [lodashValue] = useState(get(object, 'a[0].b.c'));

  return (
    <div className="App">
      <header className="App-header">
        <img src={logo} className="App-logo" alt="logo" />
       {lodashValue}
      </header>
    </div>
  );
}

export default App;
